﻿/*
 * Encoding Test
 * 
 * Author: snowdreamist
 * Date: 2011/11/18
 * 
 */

using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BitTorrentSharp.Torrent;
using BitTorrentSharp.BEncoding;

namespace BitTorrentSharp.Test
{
    [TestClass]
    public class EncodingUnitTest
    {
        public void TestDecodingMetaInfo()
        {
            foreach (var torrentFilepath in TestUtility.TestTorrentFiles)
            {
                MetaInfo metaInfo = null;
                // decode
                using (var fStream = new FileStream(torrentFilepath, FileMode.Open))
                    metaInfo = MetaInfo.CreateFromStream(fStream);
                // verify
            }
        }
    }
}
